const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token, // 提供公共的访问token出口
  staffPhoto: state => state.user.userInfo.staffPhoto, // 获取用户头像
  name: state => state.user.userInfo.username, // 快捷访问用户名
  userId: state => state.user.userInfo.userId // 快捷访问用户名id
}
export default getters
